<template>
	<view>
		<view class="wu" v-if="order_dianzilist_data.data.length==0">
			<image src="../../static/wu.png" style="width: 182px; height: 150px; " mode=""></image>
			<p>暂无数据</p>
		</view>
		<view class="dd" v-for="(time,index) in order_dianzilist_data.data" @click="tzxx(time.id)">
			<view class="dd-top">
				<view class="dd-q">
					订单编号
				</view>
				<!-- 已通过  申请中  已拒绝 -->
				<!-- 申请状态:1=审核中,2=已拒绝,3=已打款 status -->

				<view class="dd-p" :style="
					time.is_advance==0?'color:#1890FF;':
					time.is_advance==1?'color:#0ACF00;':''
					">
					{{
							time.is_advance==0?'未垫子':
							time.is_advance==1?'已垫子':''
						}}
				</view>
			</view>
			<view class="dd-dd">
				<p>应垫资金额：{{time.should_advance_amount || ''}}</p>
				<p>配送费：{{time.delivery_amount || ''}}</p>
				<p>大车费：{{time.freight_amount || ''}}</p>
				<p>实际垫资金额：{{time.advance_amount || ''}}</p>
			</view>

		</view>
		<button v-if="order_dianzilist_data.data.length!=0">全部支付</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				order_dianzilist_data: {}
			}
		},
		onLoad() {
			this.order_dianzilist();
		},
		methods: {
			tzxx(x) {
				uni.navigateTo({
					url: "/pages/my/c_yunshudianzixiangqing?id=" + x
				});
			},
			//运费垫资列表
			order_dianzilist() {
				let data = {}
				this.$rqt.order_dianzilist(data).then(res => {
					console.log(res);
					this.order_dianzilist_data = res?.data || [];
					// uni.showToast({
					// 	title: res.msg,
					// 	icon: "success",
					// 	duration: 850
					// });
				})
			}
		}
	}
</script>

<style>
	button {
		margin-top: 30px;
		width: 90%;
		height: 50px;
		background: #1890FF;
		box-shadow: 0px 0px 4px 0px rgba(204, 204, 204, 0.5);
		border-radius: 25px;


		font-size: 18px;
		font-weight: 600;
		color: #FFFFFF;
	}

	.wu {
		width: 100%;
		text-align: center;
		padding-top: 60px;
		color: #999999;
		font-size: 18px;
		line-height: 40px;
	}

	.dd {
		width: 100%;
		padding-bottom: 10px;
		margin-bottom: 10px;
		background: #FFFFFF;
		box-shadow: 0px 0px 6px 0px rgba(204, 204, 204, 0.5);
	}

	.dd-top {
		width: 100%;
		display: flex;
		justify-content: space-between;
		border-bottom: 1px dashed #CCCCCC;
	}

	.dd-q {
		font-size: 18px;
		font-weight: 500;
		margin-left: 20px;
		line-height: 50px;

	}

	.dd-p {
		font-size: 18px;
		line-height: 50px;
		margin-right: 20px;
		color: #0ACF00;
		font-weight: 600;
	}

	.dd-dd {
		overflow: hidden;
		width: 90%;
		margin: 0 auto;
	}

	.dd-dd>p {
		line-height: 40px;
		float: left;
		width: 50%;
		font-size: 16px;
		font-weight: 400;
	}
</style>
